import { createApp } from "vue";
import "./styles/global.scss";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import App from "./App.vue";
import VChart from "vue-echarts";
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
import pinia from "./stores";

const app = createApp(App);

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}

app.use(ElementPlus);
app.use(pinia);
app.component("v-chart", VChart);
app.mount("#app");
